package com.tuanchauict.android.englishtip.database;

public class Word {
	
	public static final int NOUN = 1;
	public static final int VERB = 2;
	public static final int ADJECTIVE = 3;
	public static final int ADVERB = 4;
	public static final int PREPOSITION = 5;
	public static final int UNKNOW = 0;
	
	public int cid;
	public String word;
	public String pron;
	public int grade;
	public String mean;
	
	public Word(int cid, String word, String pron, int grade, String mean){
		this.cid = cid;
		this.word = word;
		this.pron = pron;
		this.grade = grade;
		this.mean = mean;
	}
	
	public String getBody() {
		return "//" + pron + "///n" + mean; 
	}
	
	public String getWord() {
		return word + " " + pron2string();
	}
	
	private String pron2string(){
		switch(grade){
		case 1:
			return "(n)";
		case 2:
			return "(v)";
		case 3:
			return "(a)";
		case 4:
			return "(adv)";
		case 5:
			return "(prep)";
		default:
			return "";
		}
	}
}
